package com.weixin.thread;

/**
 * @ClassName Thread
 * @Description 实现接口
 * @date 2022/2/22 13:13
 * @author: wx
 * @Version 1.0
 */
public class Thread04 implements Runnable {

    @Override
    public void run() {
        System.out.println(Thread04.class.getName() + "实现接口创建线程");
        for (int i = 0; i < 4; i++) {
            if (i % 2 == 0) {
                System.out.println(i + "----form-Thread04");
            }
        }
    }
}
